from appium.webdriver.common.appiumby import AppiumBy

from page.base_page import BasePage
from page.member_info_page import MemberInfoPage


class MemberDetailPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_member_info_page(self) -> MemberInfoPage:
        self.find(AppiumBy.ID, 'ix5').click()
        return MemberInfoPage(self.driver)